//
//  SearchDetailsController.m
//  Coco_Music
//
//  Created by 强哥 on 15/6/23.
//  Copyright (c) 2015年 寇广超. All rights reserved.
//

#import "SearchDetailsController.h"
#import "SCNavTabBarController.h"
#import "SearchSingerController.h"
#import "SearchSongController.h"
#import "SearchSpecialController.h"
#import "SearchSingleController.h"

@interface SearchDetailsController ()
@property(nonatomic,retain)UITableView *Mytable;
@property(nonatomic,retain)SearchSingerController *singer;



@end

@implementation SearchDetailsController

-(void)dealloc
{
    [self.Mytable release];
    [self.singer release];
    [self.SearchArray release];
    [super dealloc];
}


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    
    
    self.singer = [[SearchSingerController alloc]init];
    self.singer.title = @"单曲";
    self.singer.SingerUrl = self.title;    
    
    SearchSingleController *single = [[SearchSingleController alloc]init];
    single.title = @"歌手";
    single.SingerUrl = self.title;
    
    SearchSongController *song = [[SearchSongController alloc]init];
    song.title = @"歌单";
    song.SingerUrl = self.title;

    SearchSpecialController *special = [[SearchSpecialController alloc]init];
    special.title = @"专辑";
    special.SingerUrl = self.title;

    SCNavTabBarController *navTabBarController = [[SCNavTabBarController alloc] init];
    
    navTabBarController.subViewControllers = @[_singer,single,special,song];
    navTabBarController.Number = navTabBarController.subViewControllers.count;
    navTabBarController.showArrowButton = NO;
    navTabBarController.navTabBarColor = [UIColor clearColor];
    [navTabBarController addParentController:self];
    [_singer release];
    [single release];
    [song release];
    [special release];
    [navTabBarController release];
    
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
